package com.ruoyi.project.basic.warehouse.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.basic.warehouse.mapper.JcWarehouseMapper;
import com.ruoyi.project.basic.warehouse.domain.JcWarehouse;
import com.ruoyi.project.basic.warehouse.service.IJcWarehouseService;

/**
 * 仓库档案Service业务层处理
 * 
 * @author frank
 * @date 2024-08-24
 */
@Service
public class JcWarehouseServiceImpl implements IJcWarehouseService 
{
    @Autowired
    private JcWarehouseMapper jcWarehouseMapper;

    /**
     * 查询仓库档案
     * 
     * @param jcWarehouseoid 仓库档案主键
     * @return 仓库档案
     */
    @Override
    public JcWarehouse selectJcWarehouseByJcWarehouseoid(String jcWarehouseoid)
    {
        return jcWarehouseMapper.selectJcWarehouseByJcWarehouseoid(jcWarehouseoid);
    }

    /**
     * 查询仓库档案列表
     * 
     * @param jcWarehouse 仓库档案
     * @return 仓库档案
     */
    @Override
    public List<JcWarehouse> selectJcWarehouseList(JcWarehouse jcWarehouse)
    {
        return jcWarehouseMapper.selectJcWarehouseList(jcWarehouse);
    }

    /**
     * 新增仓库档案
     * 
     * @param jcWarehouse 仓库档案
     * @return 结果
     */
    @Override
    public int insertJcWarehouse(JcWarehouse jcWarehouse)
    {
        return jcWarehouseMapper.insertJcWarehouse(jcWarehouse);
    }

    /**
     * 修改仓库档案
     * 
     * @param jcWarehouse 仓库档案
     * @return 结果
     */
    @Override
    public int updateJcWarehouse(JcWarehouse jcWarehouse)
    {
        return jcWarehouseMapper.updateJcWarehouse(jcWarehouse);
    }

    /**
     * 批量删除仓库档案
     * 
     * @param jcWarehouseoids 需要删除的仓库档案主键
     * @return 结果
     */
    @Override
    public int deleteJcWarehouseByJcWarehouseoids(String[] jcWarehouseoids)
    {
        return jcWarehouseMapper.deleteJcWarehouseByJcWarehouseoids(jcWarehouseoids);
    }

    /**
     * 删除仓库档案信息
     * 
     * @param jcWarehouseoid 仓库档案主键
     * @return 结果
     */
    @Override
    public int deleteJcWarehouseByJcWarehouseoid(String jcWarehouseoid)
    {
        return jcWarehouseMapper.deleteJcWarehouseByJcWarehouseoid(jcWarehouseoid);
    }
}
